package com.bf.hotpoint.service;

import java.util.List;

import org.springframework.data.geo.Point;
import org.springframework.web.bind.annotation.RequestParam;

import com.bf.hotpoint.domain.Message;
import com.bf.hotpoint.enums.ResultCodeEnum;

public interface MessageService {
	public ResultCodeEnum addMessage(String uuid, String deviceToken,String content, String title, List<String> images, Point location,int liveSeconds,String subject,String nickName,Boolean isMale,Boolean hasUserHead) ;
	
	public String getUuidByMessageId(String messageId) throws Exception;
	
	public void reportMessageByMessageId(String messageId,String reportUuid);
	
	public List<Message> getMessages(boolean newOrHot,int lastIndex,String subject,double locationx,double locationy,Long startSearchTime) throws Exception;
	
	public List<Message> getMessagesByIds(List<String> messageIds);
	
	public ResultCodeEnum postReply(String uuid,String deviceToken,String content,String messageid,String nickName,String toNickName,String toUuid,boolean sex,String toDeviceToken);
	
	public void praiseOrDespise(boolean isPraiseOrDespise,String uuid,String messageId);
}
